package com.jnademo;

import com.sun.jna.Library;
import com.sun.jna.Native;

public class JnaDemo {

	public interface CLibrary extends Library {
		CLibrary INSTANCE = (CLibrary) Native.load("C:\\Users\\TR\\source\\repos\\jnaDemo\\x64\\Debug\\jnaDemo.dll",
				CLibrary.class);

		int add(int a, int b);

		int sub(int a, int b);
	}

	public static void main(String[] args) {
		int sum = CLibrary.INSTANCE.add(10, 3);
		
		int count = CLibrary.INSTANCE.sub(1, 3);
		
		System.out.println(sum);
		System.out.println(count);
	}
}
